package com.hod.roommap.client.maps;

import com.hod.roommap.client.model.BedRecordset;
import com.hod.roommap.client.model.Room;
import com.hod.roommap.client.model.RoomRecordset;
import com.objetdirect.tatami.client.gfx.Rect;

public class RoomRect extends Rect {
	private Room room;
	
	public RoomRect(double width, double height, Room room) {
		super(width, height);
		this.room = room;
	}


	public void setRoom(Room room) {
		this.room = room;
	}


	public Room getRoom() {
		return room;
	}


	public Integer getFloor() {		
		return room.getFloor();
	}


	public int getBeds() {
		// TODO Auto-generated method stub
		return BedRecordset.getBed(room.getIdRoom()).length;
	}
	

}
